/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package chuiniurobot.message;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import org.apache.mina.core.session.IoSession;

/**
 * 接收对家摇定的所有骰子点数
 * @author zhengji
 */
public class VSPlayerAllDiceNumberMessage extends BaseMessage {

    public VSPlayerAllDiceNumberMessage(IoSession ioSession, String requestJSONStr) {
        super(ioSession, requestJSONStr);
    }

    @Override
    public void execute() {
        
        JSONObject jsonObj=JSON.parseObject(this.requestJSONStr);
        int vsPlayerID=jsonObj.getIntValue("vsid");
        String diceNumbers=jsonObj.getString("d");
        
        
        this.setVsPlayerDiceNumbers(diceNumbers.split(","));
        
      }
    
}
